home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / daymisckit_proj / Headers / ExtendedApp.h
Text File  |  1995-06-12  |  1KB  |  37 lines

  1. //
  2. //    ExtendedApp.h -- a class to make extra information available via the
  3. //        application object.  If you use this object, you must link
  4. //        against ni_s or you'll get errors!
  5. //        Written by Don Yacktman (c) 1993 by Don Yacktman.
  6. //                Version 1.0.  All rights reserved.
  7. //
  8. //        This is a free object!  Contact the author for the latest version.
  9. //        Don Yacktman, 4279 N. Ivy Lane, Provo, UT, 84604
  10. //        e-mail:  Don_Yacktman@byu.edu
  11. //
  12. //    See ExtendedApp.m for details of the software license.
  13. //
  14.  
  15. #import <appkit/appkit.h>
  16.  
  17. @interface ExtendedApp:Application
  18. {
  19.     char realHostName[MAXHOSTNAMELEN];    // host running the application
  20.     NXAtom userRealName;                // real name of user running the app
  21. }
  22.  
  23. + new;
  24. - (const char *)appDirectory;
  25. - (int)userIDNum;
  26. - (int)groupIDNum;
  27. - (int)effectiveUserIDNum;
  28. - (int)effectiveGroupIDNum;
  29. - (unsigned long int)hostID;
  30. - (NXAtom)userHomeDirectory;
  31. - (NXAtom)userLoginName;
  32. - (NXAtom)userRealName;
  33. - (NXAtom)realHostName;
  34. - (NXAtom)realNameFor:(NXAtom)userId;
  35.  
  36. @end
  37.